package com.zds.hj.poseidon.biz.dispatcher.credit;

import com.zds.boot.dispatch.annotation.DispatcherHandler;
import com.zds.boot.dispatch.comm.enums.ModuleNodeTypeEnum;
import com.zds.boot.dispatch.dto.BaseReqModel;
import com.zds.boot.dispatch.dto.BaseResultModel;
import com.zds.boot.saturn.dictionary.load.ZdsDictionaryLoader;
import com.zds.hj.poseidon.facade.dto.hpp.credit.CreditInfoEntityDto;
import com.zds.hj.product.facade.constant.ApplicationContainerConstant;
import lombok.extern.slf4j.Slf4j;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author duanhao
 * @Description TODO
 * @Date 2023/5/30 9:50
 */
@DispatcherHandler(value = "CreditAutoHandler", desc = "授信自动模块",applicationContainer = ApplicationContainerConstant.FRONT_END, nodeType = ModuleNodeTypeEnum.BUSINESS)
@Slf4j
public class CreditAutoHandler extends CreditCheckAbsHandler {


    @Override
    public void creditDoExecute(BaseReqModel params, BaseResultModel resultModel, CreditInfoEntityDto reqData, CreditInfoEntityDto dbData) {
        log.info("执行逻辑");
        String dictionary = ZdsDictionaryLoader.getDictionary("aaa");
        log.info("配置的平台参数为: {}", dictionary);
    }

    @Override
    public Object echoDetail(BaseReqModel params) {

        Map<String, Object> map = new HashMap<>(1);
        map.put("info", "最后一个模块信息");
        return map;
    }

}
